<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
     
    />

    <van-card
      :price="item.price"
      desc="描述信息xxx"
      :title="item.goodsname"
      :thumb="$host+item.img"
      v-for="(item,index) in menus"
      :key="index"
    >
     <template #footer>
            <van-button width="20px" icon="shopping-cart-o" size="small" type="primary" />
          </template>
    </van-card>
  </div>
</template>

<script>
import { getlei } from "../radio/index";

export default {
    created(){
        console.log(this.$route.params.id);
    this.get()
    },
  data() {
    return {
        menus:[]
    };
  },
  methods: {
    async get() {
      let res = await getlei({ params: { fid:this.$route.params.id } });
      console.log(res.list.list);
      this.menus=res.list.list
    },
    onClickLeft() {
      this.$router.push("/index/fenlei");
    },
  },
};
</script>

<style>
</style>